<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	xmlns:b="http://bootsfaces.net/ui"
	template="/templates/layout_mobile.xhtml">

	<ui:define name="pchead">
		<h2>收货单签收</h2>
	</ui:define>
	<ui:define name="pcontent">
		<pm:content>
			<h:form>	
			待签收数量：#{mobileReceiptMB.voList.size()}			
				<p:dataList id="wDatalist" value="#{mobileReceiptMB.voList}" 
					var="row" rowIndexVar="rowNum">

					<p:commandLink action="m_receipt_sign.xhtml?faces-redirect=true" >
					    <!-- <p:graphicImage name="images/msign.gif" />  -->
                    	<h3>收货单号：#{row.id}</h3>
                    	<p style="color:blue;">供应商：#{row.supplier}</p>
                    	<p style="color:blue;">合同名称：#{row.contName}</p>
                    	<!-- <p class="ui-li-aside" ><strong>#{row.bmePurchOrder.id}</strong></p>  -->
						<f:setPropertyActionListener value="#{row}"
							target="#{mobileReceiptMB.selectedReceipt}" />		
						<f:setPropertyActionListener value="#{rowNum}"
							target="#{mobileReceiptMB.rowNum}" />				
					</p:commandLink>

				</p:dataList>
			
				<h:panelGrid columns="2" cellspacing="30">
					<p:commandButton id="btnQuery" value="查询" icon="ui-icon-refresh"							
						action="#{mobileReceiptMB.queryTasks}" update="wDatalist"
						style="color:white;background-color:#3366AA;">
					</p:commandButton>
					<p:button outcome="home_mobile.xhtml" value="主页" icon="ui-icon-back"  style="color:white;background-color:#3366AA;"/>
 				</h:panelGrid>				
			</h:form>

		</pm:content>

	</ui:define>

</ui:composition>